const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    //跨域  
    transpileDependencies: true,
    lintOnSave: false,
    devServer: {
        proxy: {
            '/api': {
                target: 'http://146.56.207.108:3000',
                ws: true, //是否支持跨域
                changeOrigin: true, //是否代理服务器
                pathRewrite: {
                    "^/api": "" //路径/地址重写为    正则匹配
                }
            }
        }
    }
})